<?php
include_once("../include/common.inc.php");

if(isset($_GET['id'])){
    //$sqla = "SELECT * FROM `#@__arctype` WHERE reid<>0";
    //$data = $dsql->fmSelect($sqla);
    
}
$sqla = "SELECT * FROM `sysconfig` WHERE varname='fm_calendar_default'";
$data = $dsql->GetOne($sqla);

$sqlb = "SELECT * FROM `fmsource` WHERE title='".$data['value']."'";
$data1 = $dsql->fmSelect($sqlb);
//echo var_dump($data1);
//iconv(iconv_get_encoding($data), 'UTF-8',$data)
$info = '';
foreach($data1 as $d){
    $info .= "<info><name>".$d['title']."</name><urls>".$d['small']."</urls>
    <urlx>".$d['url']."</urlx>
    <width>".$d['width']."</width>
    <height>".$d['height']."</height>
    <idx>".$d['aid']."</idx>
    </info>";
}
echo "<root>".$info."</root>";
?>